/*
* Sun Public License Notice
*
* The contents of this file are subject to the Sun Public License
* Version 1.0 (the "License"). You may not use this file except in
* compliance with the License. A copy of the License is available at
* http://www.sun.com/
*
* The Original Code is Forte for Java, Community Edition. The Initial
* Developer of the Original Code is Sun Microsystems, Inc. Portions
* Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
*/
package org.netbeans.modules.form;
import org.openide.nodes.*;
/**
*
* @author Ian Formanek
*/
public interface FormListener extends java.util.EventListener {
/** Called when the form is succesfully loaded and fully initialized
*/
public void formLoaded ();
/** Called when a change is performed on the form that should lead to regeneration of both initializer and variables declaration
*/
public void formChanged ();
/** Called when a change is performed on the form that should lead to regeneration of initializer
*/
public void codeChanged ();
/** Called when the form is about to be saved
*/
public void formToBeSaved ();
/** Called when the order of components within their parent changes
* @param cont the container on which the components were reordered
*/
public void componentsReordered (ComponentContainer cont);
/** Called when a new component is added to the form
* @param comps the delta components
*/
public void componentsAdded (RADComponent[] comps);
/** Called when any component is removed from the form
* @param comps the delta components
*/
public void componentsRemoved (RADComponent[] comps);
/** Called when any synthetic property of a component on the form is changed
* The synthetic properties include: variableName, serialize, serializeName, generateGlobalVariable
* @param evt the event object describing the event
*/
public void componentChanged (FormPropertyEvent evt);
/** Called when any bean property of a component on the form is changed
* @param evt the event object describing the event
*/
public void propertyChanged (FormPropertyEvent evt);
/** Called when any layout property of specified component on given container changes
* @param container the visual container on which layout the change happened
* @param component the component which layout property changed or null if layout's own property changed
* @param propertyName name of changed property
* @param oldValue old value of changed property
* @param newValue new value of changed property
*/
public void layoutChanged (RADVisualContainer container, RADVisualComponent component, String propertyName, Object oldValue, Object newValue);
/** Called when an event handler is added to a component on the form
* @param evt the event object describing the event
*/
public void eventAdded (FormEventEvent evt);
/** Called when an event handler is added to a component on the form
* @param evt the event object describing the event
*/
public void eventRemoved (FormEventEvent evt);
/** Called when an event handler is renamed on a component on the form
* @param evt the event object describing the event
*/
public void eventRenamed (FormEventEvent evt);
}
/*
* Log
* 14 Gandalf 1.13 10/23/99 Ian Formanek NO SEMANTIC CHANGE - Sun
* Microsystems Copyright in File Comment
* 13 Gandalf 1.12 9/29/99 Ian Formanek codeChanged added to
* FormListener
* 12 Gandalf 1.11 7/31/99 Ian Formanek Cleaned up comments
* 11 Gandalf 1.10 6/30/99 Ian Formanek added formToBeSaved
* method
* 10 Gandalf 1.9 6/10/99 Ian Formanek Regeneration on layout
* changes
* 9 Gandalf 1.8 6/9/99 Ian Formanek ---- Package Change To
* org.openide ----
* 8 Gandalf 1.7 6/2/99 Ian Formanek ToolsAction, Reorder
* 7 Gandalf 1.6 5/31/99 Ian Formanek
* 6 Gandalf 1.5 5/15/99 Ian Formanek
* 5 Gandalf 1.4 5/10/99 Ian Formanek
* 4 Gandalf 1.3 5/5/99 Ian Formanek
* 3 Gandalf 1.2 5/4/99 Ian Formanek Package change
* 2 Gandalf 1.1 4/29/99 Ian Formanek
* 1 Gandalf 1.0 4/26/99 Ian Formanek
* $
*/